package cn.edu.nju.software.service.intf;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

import cn.edu.nju.software.bean.show.CommentSearchListItem;

public interface CommentService {
	/**
	 * 用户发表评论
	 */
	public abstract void postComment(int userID, int bookID, String content) throws SQLException;
	
	/**
	 * 取得指定ID书籍的评论
	 */
	public abstract List<CommentSearchListItem> getCommentByBookID(int bookID) throws SQLException;
	
	/**
	 * 根据指定条件搜索评论
	 */
	public abstract List<CommentSearchListItem> searchComments(String user, String bookTitle, 
			Date beginDate, Date endDate) throws SQLException;
	
	/**
	 * 修改评论状态
	 */
	public abstract void modifyCommentStatus(int commentID, int operateCode) throws SQLException;
}
